import { createVNode, render } from 'vue'
import _Message from './index.vue'
function Message ({ type, text }) {
  const vNode = createVNode(_Message, { type, text })
  const div = document.createElement('div')
  document.body.append(div)
  render(vNode, div)
  setTimeout(() => {
    render(null, div)
  }, 1500)
}
export default Message
